import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import PrivacyPolicy from '@/components/PrivacyPolicy'
import Products from '@/components/Products'
import AboutBrand from '@/components/AboutBrand'
import Contacts from '@/components/Contacts'
import News from '@/components/News'
import NewsDetail from '@/components/NewsDetail'
import ProductDetail from '@/components/ProductDetail'

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/privacyPolicy',
      name: 'PrivacyPolicy',
      component: PrivacyPolicy
    },
    {
      path: '/products',
      name: 'Products',
      component: Products
    },
    {
      path: '/contacts',
      name: 'Contacts',
      component: Contacts
    },
    {
      path: '/aboutBrand',
      name: 'AboutBrand',
      component: AboutBrand
    },
    {
      path: '/news',
      name: 'News',
      component: News
    },
    {
      path: '/news/:id',
      name: 'NewsDetail',
      component: NewsDetail,
    },
    {
      path: '/product/:id',
      name: 'ProductDetail',
      component: ProductDetail,
    },
  ]
})
